import { lazy } from 'react'
import { RouterList } from '../utils/type'

const router: RouterList[] = [
    {
        path: '/',
        to: '/home'
    },
    {
        path: "/home",
        element: lazy(() => import('../page/Home/index'))
    },
    {
        path: "/poster/:param",
        element: lazy(() => import('../page/poster/index'))
    },
    {
        path: "/autumn",
        element: lazy(() => import('../page/marketing/Autumn'))
    },
    {
        path: "/chat",
        element: lazy(() => import('../page/Chat/index'))
    },
    {
        path: "/mine",
        element: lazy(() => import('../page/Mine/index'))
    },
    {
        path: "/advertisement",
        element: lazy(() => import('../page/advertisement/index'))
    },
    {
        path: "/ui",
        element: lazy(() => import('../page/uidesign/index'))
    },
    {
        path: "/videoaudio",
        element: lazy(() => import('../page/videoaudio/index'))
    },
    {
        path: "/colorsearch",
        element: lazy(() => import('../page/colorsearch/index'))
    },
    {
        path: "/problem",
        element: lazy(() => import('../page/Problem/index'))
    },
    {
        path: "/picker",
        element: lazy(() => import('../page/Picker/index'))
    },
    {
        path: "/canvasselector",
        element: lazy(() => import('../page/CanvasSelector/index'))
    },
    {
        path: "/yiqixiu",
        element: lazy(() => import('../page/YiqiXiu/index'))
    },
    {
        path: "/detile",
        element: lazy(() => import('../page/detile/index'))
    },
    {
        path: "/workbench",
        element: lazy(() => import('../page/Workbench/index')),
        children: [
            {
                path: "/workbench",
                to: "/workbench/home"
            },
            {
                path: "/workbench/home",
                element: lazy(() => import('../page/Workbench/home/index'))
            },
            {
                path: "/workbench/scene",
                element: lazy(() => import('../page/Workbench/scene/index'))
            },
            {
                path: "/workbench/source",
                element: lazy(() => import('../page/Workbench/source/index'))
            }
        ]
    },
    {
        path: "/design2",
        element: lazy(() => import('../page/Design/design'))
    },
    {
        path: "/cai",
        element: lazy(() => import('../page/Design/cai'))
    },
    {
        path: "/kou",
        element: lazy(() => import('../page/Design/kou'))
    },
    {
        path: "/guo",
        element: lazy(() => import('../page/Guo/index')),
        children: [
            {
                path: "/guo/pay",
                element: lazy(() => import('../page/Guo/Pay/pay'))
            },
            {
                path: "/guo/order",
                element: lazy(() => import('../page/Guo/order/order'))
            },
            {
                path:"/guo/shop",
                element: lazy(() => import('../page/Guo/shop/shop'))
            }
        ]
    },
     {
        path: "/Onlineprinting",
        element: lazy(() => import('../page/Onlineprinting/index'))
    },
     {
        path: "/fx",
        element: lazy(() => import('../page/Fx/index'))
    },
    {
        path: "/enterpriseservices",
        element: lazy(() => import('../page/EnterpriseServices/index'))
    }
]

export default router;
